package com.wisedu.wec.bank.common.exception;


import com.wisedu.wec.bank.common.enums.ErrorCode;

public class BaseException extends RuntimeException {

    private static final long serialVersionUID = 6837784999666252434L;
    private ErrorCode errorCode;

    public ErrorCode getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(ErrorCode errorCode) {
        this.errorCode = errorCode;
    }
    public BaseException(ErrorCode errorCode, String string) {
        super(string);
        this.errorCode = errorCode;
    }
    public BaseException(ErrorCode errorCode, String msg, Throwable e){
        super(msg,e);
        this.errorCode = errorCode;
    }




}
